<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<title>查询采购合同</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link href="css/style.css" rel="stylesheet" type="text/css">
<body>
	<table width="100%" border="1" cellspacing="0" cellpadding="0" style="font-size: 14px;">
		<c:choose>
			<c:when test="${not empty contracts }">
				<tr>
					<td><strong>合同名称</strong></td>
					<td><strong>合同内容</strong></td>
					<td><strong>商品名称</strong></td>
					<td><strong>商品单价</strong></td>
					<td><strong>商品数量</strong></td>
					<td><strong>商品总价</strong></td>
					<td><strong>供货商名称</strong></td>
					<td><strong>采购时间</strong></td>
					<td><strong>采购员用户名</strong></td>
					<td><strong>采购员</strong></td>
					<td><strong>审批时间</strong></td>
					<td><strong>审批人用户名</strong></td>
					<td><strong>审批人</strong></td>
					<td><strong>审核时间</strong></td>
					<td><strong>审核人用户名</strong></td>
					<td><strong>审核人</strong></td>
					<td><strong>合同状态</strong></td>
				</tr>
				<c:forEach var="contract" items="${contracts }">
					<tr>
						<td>${contract.name }</td>
						<td>${contract.content }</td>
						<td>${contract.goodsName }</td>
						<td>${contract.goodsPrice }</td>
						<td>${contract.goodsNumber }</td>
						<td>${contract.totalCost }</td>
						<td>${contract.supplierName }</td>
						<td>${contract.contractTimeStr }</td>
						<td>${contract.buyerLoginName }</td>
						<td>${contract.buyerName }</td>
						<td>${contract.approveTimeStr }</td>
						<td>${contract.approverLoginName }</td>
						<td>${contract.approverName }</td>
						<td>${contract.verifyTimeStr }</td>
						<td>${contract.verifierLoginName }</td>
						<td>${contract.verifierName }</td>
						<td>${contract.stateStr }</td>
					</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr>
					<td colspan="2">暂无合同</td>
				</tr>
			</c:otherwise>
		</c:choose>
	</table>
</body>
</html>